package org.jeecg.modules.system.upgrade.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;
@Data
public class VersionDto {

    @ApiModelProperty(value = "应用ID(appId)")
    private String appId;

    @ApiModelProperty(value = "版本id")
    private String vesId;

    @ApiModelProperty(value = "文件id")
    private String paId;

    @ApiModelProperty(value = "版本号")
    private String version;

    @ApiModelProperty(value = "app名称")
    private String appName;

    @ApiModelProperty(value = "有参数代表最新，无则非最新")
    private String newYn;

    @ApiModelProperty(value = "app编码")
    private String appCode;

    @ApiModelProperty(value = "下载地址URL")
    private String downloadUrl;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发布时间")
    private java.util.Date releaseTime;

    @Excel(name = "是否最新版本（0否，1是）", width = 15 ,dicCode = "yn")
    @ApiModelProperty(value = "是否最新版本（0否，1是）")
    @Dict(dicCode = "yn")
    private Integer newest;

    @Excel(name = "是否强制升级(0否1是)", width = 15 ,dicCode = "yn")
    @ApiModelProperty(value = "是否强制升级(0否1是)")
    @Dict(dicCode = "yn")
    private String isForce;

    @ApiModelProperty(value = "下载次数")
    private String downloadCount;

    @ApiModelProperty(value = "备注")
    private String memo;

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "文件大小")
    private Integer fileSize;

    @ApiModelProperty(value = "文件类型")
    private String fileType;

    @ApiModelProperty(value = "文件内容")
    private String content;
    @ApiModelProperty(value = "校验码")
    private String checkCode;

}
